<template>
  <div class="continer">
    <div class="publish_content">
      <div class="publish_sections">
        <div class="publih_publish">
          <div>翻译包</div>
          <div @click="close_cloe()"><img src="../assets/closes.png" /></div>
        </div>
        <div
          class="think_publish"
          :class="number_seled == 1 ? 'selected_publish' : ''"
          @click="think_publish(1)"
        >
          <div>
            <span class="Price_bold">500</span>
            <span class="character">字符</span>
          </div>
          <div class="discount_price">
            <h4>$20.99</h4>
            <p>save 6%</p>
          </div>
        </div>
        <!-- 2222 -->
        <div
          class="think_publish"
          :class="number_seled == 2 ? 'selected_publish' : ''"
          @click="think_publish(2)"
        >
          <div>
            <span class="Price_bold">500</span>
            <span class="character">字符</span>
          </div>
          <div class="discount_price">
            <h4>$20.99</h4>
            <p>save 6%</p>
          </div>
        </div>
        <!-- 333 -->
        <div
          class="think_publish"
          :class="number_seled == 3 ? 'selected_publish' : ''"
          @click="think_publish(3)"
        >
          <div>
            <span class="Price_bold">500</span>
            <span class="character">字符</span>
          </div>
          <div class="discount_price">
            <h4>$20.99</h4>
            <p>save 6%</p>
          </div>
        </div>
        <!-- 4444 -->
        <div
          class="think_publish"
          :class="number_seled == 4 ? 'selected_publish' : ''"
          @click="think_publish(4)"
        >
          <div>
            <span class="Price_bold">500</span>
            <span class="character">字符</span>
          </div>
          <div class="discount_price">
            <h4>$20.99</h4>
            <p>save 6%</p>
          </div>
        </div>
        <!-- 5555 -->
        <div
          class="think_publish"
          :class="number_seled == 5 ? 'selected_publish' : ''"
          @click="think_publish(5)"
        >
          <div>
            <span class="Price_bold">500</span>
            <span class="character">字符</span>
          </div>
          <div class="discount_price">
            <h4>$20.99</h4>
            <p>save 6%</p>
          </div>
        </div>
        <!---->
        <div class="publish_imgs">
          <div class="upload_imgs">总价：$20.99</div>
          <div class="publish_button">付款</div>
        </div>
      </div>
      <!----->
    </div>
    <div class="mask_contet" @click="close_cloe()"></div>
  </div>
</template>
<script>
export default {
  name: "TranslationPackage",
  data: () => ({
    number_seled: 1,
  }),
  methods: {
    close_cloe() {
      this.$emit("closes");
    },
    think_publish(val) {
      this.number_seled = val;
    },
  },
};
</script>
<style  scoped>
.continer {
  width: 100%;
}
.publish_content {
  width: 18%;
  margin: 0 auto;
  background: #ffffff;
  position: fixed;
  top: 40%;
  left: 0;
  right: 0;
  z-index: 99999;
  border-radius: 10px;
  padding-bottom: 12px;
  padding-top: 12px;
}
.publish_sections {
  width: 85%;
  margin: 0 auto;
}
.publih_publish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 16px;
  font-family: PingFang SC;
  font-weight: bold;
  color: #000000;
}
.think_publish {
  padding: 8px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
}
.selected_publish {
  border: 1px solid #4064e3;
  background: #f9fafe;
}
.Price_bold {
  font-size: 20px;
  font-family: DIN;
  font-weight: bold;
  color: #383e49;
}
.character {
  font-size: 12px;
  font-family: PingFang SC;
  font-weight: 400;
  color: #768194;
}
.discount_price h4 {
  font-size: 14px;
  font-family: DIN;
  font-weight: 500;
  color: #434a56;
}
.discount_price p {
  font-size: 10px;
  font-family: PingFang SC;
  font-weight: bold;
  color: #4064e3;
}
.publish_imgs {
  display: flex;
  margin-bottom: 10px;
  margin-top: 25px;
  align-items: flex-end;
  justify-content: space-between;
}
.upload_imgs {
  background: #ffffff;
  border-radius: 12px;
  font-size: 18px;
  font-family: PingFang SC;
  font-weight: 500;
  color: #434a56;
}
.publish_button {
  background: linear-gradient(161deg, #637fe7, #3659cf);
  border-radius: 22px;
  font-size: 16px;
  font-family: PingFang SC;
  font-weight: 500;
  color: #ffffff;
  line-height: 28px;
  width: 22%;
  text-align: center;
  height: 28px;
}
.mask_contet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(221, 221, 221, 0.6);
}
</style>
   




























